package dome09;

public class Student {
    public static void main(String[] args) {


        String s1 = "hello java";
        String s2 = "hello java";

        if (s1.equals(s2)) {
            String S3 = s1.replace(" ","");
            System.out.println(S3);
            String S4 = S3.replace("java","word");
            System.out.println(S4);
        }
    }
}